
public class Ship extends SpaceObject{

	
	GameMain game;
	/**
	 * Constructor
	 * 
	 */
	 public Ship(GameMain game, String spr, int x, int y)
	{
		super(spr,x,y);
		this.game=game;
	}
	 
	 
	 /**
	  * Move method for now left to right
	  * super(del) if move up and down too
	  */
	public void move(long del)
	{
		if((xVel<0)&&(x<10)){
			return;
		}
		if((xVel>0)&&(x>750))
		{
			return;
		}
		super.move(del);
	}


	@Override
	public void collidedWith(SpaceObject other) {
	  
		if(other instanceof EnemyObject)
		{
			game.notifyDeath();
		}
	}
	
	/**
	 * Collision Method needed
	 */
	
	
}
